import request from '@/utils/request'

//获取报表组件树
export function queryAllTree(data){
  return request({
    url:'/system/reports/component/queryAllTree',
    method:'post',
    data
  })
}

//获取分类数据
export function getTree(data){
  return request({
    url:'/system/report/subject/tree',
    method:'post',
    data
  })
}

//获取全部分类及看板数据
export function getAllTree(data){
  return request({
    url:'/system/report/subject/allTree',
    method:'post',
    data
  })
}


//新增分类
export function addType(data){
  return request({
    url:'/system/report/subject/add',
    method:'post',
    data
  })
}

//编辑分类
export function editType(data){
  return request({
    url:'/system/report/subject/edit',
    method:'post',
    data
  })
}

//删除分类
export function removeType(data){
  return request({
    url:'/system/report/subject/remove',
    method:'post',
    data
  })
}

//编辑分类前校验
export function deleteTypeForCheck(data){
  return request({
    url:'/system/report/subject/deleteCheck',
    method:'post',
    data
  })
}

//列表信息
export function getList(params){
  return request({
    url:'/system/report/kanban/list',
    method:'get',
    params
  })
}

//启用停用
export function updateStatus(data){
  return request({
    url:'/system/report/kanban/updateStatus',
    method:'post',
    data
  })
}

//删除看板
export function removeViewBoard(data){
  return request({
    url:'/system/report/kanban/remove',
    method:'post',
    data
  })
}
// 删除数据前校验
export function deleteForCheck(data) {
  return request({
    url: '/system/report/kanban/deleteCheck',
    method: 'post',
    data: data
  })
}

//新增看板
export function addViewBoard(data){
  return request({
    url:'/system/report/kanban/add',
    method:'post',
    data
  })
}

//编辑看板
export function editViewBoard(data){
  return request({
    url:'/system/report/kanban/edit',
    method:'post',
    data
  })
}

//看板修改分类
export function classIfication(data){
  return request({
    url:'/system/report/kanban/classIfication',
    method:'post',
    data
  })
}

//获取看板具体数据
export function getInfo(params){
  return request({
    url:'/system/report/kanban/getInfo',
    method:'get',
    params
  })
}
